package ysq.xyg.recovery.service;

import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.recovery.model.po.RecoveryRecord;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.recovery.model.vo.RecoveryRecordVo;

import java.util.List;

/**
 * 回收金模块-回收记录表service接口
 *
 * @author congcong tao
 * @date 2019-5-8 15:12:49
 */
public interface RecoveryRecordService extends BaseService<RecoveryRecord> {

    /**
     * 分页查询
     *
     * @param recoveryRecordVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-8 15:12:49
     */
    ReturnEntity page(RecoveryRecordVo recoveryRecordVo, int pageSize, int pageNum);

    ReturnEntity pageLeft(RecoveryRecordVo recoveryRecordVo, int pageSize, int pageNum);

    /**
     * 查询积分
     * @param recoveryRecordVo
     * @param pageSize
     * @param pageNum
     * @author congcong tao
     * @date 2019/8/17 9:25
     */
    ReturnEntity pageByIntegral(RecoveryRecordVo recoveryRecordVo, int pageSize, int pageNum);

    /**
     * 修改
     *
     * @param recoveryRecordVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-8 15:12:49
     */
    ReturnEntity addOrUpdate(RecoveryRecordVo recoveryRecordVo, SysUser currentUser);

    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-8 15:12:49
     */
    ReturnEntity delete(String id, SysUser currentUser);

    /**
     * 获取集合
     *
     * @param recoveryRecordVo 对象
     * @return List<RecoveryRecord> RecoveryRecord集合
     * @author congcong tao
     * @date 2019-5-8 15:12:49
     */
    List<RecoveryRecord> acceptList(RecoveryRecordVo recoveryRecordVo);

    ReturnEntity saveRecoveryRecord(RecoveryRecordVo recoveryRecordVo);

    Double selectAllCount(RecoveryRecord recoveryRecordEntrys);

    Double selectWeightCount(RecoveryRecord recoveryRecord);
}
